#
# Be sure to run `pod lib lint HKBaseModule.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html
#

Pod::Spec.new do |s|
  s.name             = 'HKBaseModule'
  s.version          = '0.1.0'
  s.summary          = 'A short description of HKBaseModule.'

# This description is used to generate tags and improve search results.
#   * Think: What does it do? Why did you write it? What is the focus?
#   * Try to keep it short, snappy and to the point.
#   * Write the description between the DESC delimiters below.
#   * Finally, don't worry about the indent, CocoaPods strips it!

  s.description      = <<-DESC
TODO: Add long description of the pod here.
                       DESC

  s.homepage         = 'https://github.com/HJT916109796/HKBaseModule'
  # s.screenshots     = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
  s.license          = { :type => 'MIT', :file => 'LICENSE' }
  s.author           = { 'HJT916109796' => 'hujintao@yunniao.me' }
  s.source           = { :git => 'https://github.com/HJT916109796/HKBaseModule.git', :tag => s.version.to_s }
  # s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'

  s.ios.deployment_target = '10.0'
  
  # Pod私有库文件夹配置重点（组件源码的分层）
  # s.source_files = 'HKBaseModule/Classes/**/**/*.{h,m}'
  s.source_files = 'HKBaseModule/Classes/*'
  # 主题Theme相关
  s.subspec 'Theme' do |ss|
    ss.source_files = 'HKBaseModule/Classes/Theme/**/**/*.{h,m}'
    ss.dependency 'QMUIKit', '~> 4.2.1'
    ss.subspec 'Base' do |sss|
      sss.dependency 'QMUIKit', '~> 4.2.1'
      sss.source_files = 'HKBaseModule/Classes/Theme/Base/*.{h,m}'
    end

    ss.subspec 'Configuration' do |sss|
      sss.dependency 'QMUIKit', '~> 4.2.1'
      sss.source_files = 'HKBaseModule/Classes/Theme/Configuration/*.{h,m}'
    end

    ss.subspec 'Theme' do |sss|
      sss.dependency 'QMUIKit', '~> 4.2.1'
      sss.source_files = 'HKBaseModule/Classes/Theme/Theme/*.{h,m}'
    end

    ss.subspec 'Utils' do |sss|
      sss.dependency 'QMUIKit', '~> 4.2.1'
      sss.source_files = 'HKBaseModule/Classes/Theme/Utils/*.{h,m}'
    end
    
  end
  
  # s.resource_bundles = {
  #   'HKBaseModule' => ['HKBaseModule/Assets/*.png']
  # }

  s.public_header_files = 'Pod/Classes/**/*.h'
  # s.frameworks = 'UIKit', 'MapKit' , '~> 4.2.1'
  s.dependency 'QMUIKit', '~> 4.2.1'
end
